{template paome_header}
<style type="text/css">
    td { text-align:center;}
</style>
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>


  <ul class="nav nav-tabs">
      <li class="active">
          <a data-toggle="tab">俱乐部推荐</a>
      </li>
      <li>
          <a href="?c=paome_hall&a=hallClubHistory&t=1" target="_blank">推荐历史</a>
      </li>
  </ul>

  <form class="form-horizontal" method="post" action="?c=paome_hall&a=hallClubRecommend" style="margin-left:-30px;">
    <input type="text" name="optype" value="1" style="display:none;">
    <div class="control-group search-group" style="width:600px;">
        输入俱乐部ID：
        <input type="text" placeholder="输入俱乐部ID" name="clubId">
        <button class="btn" type="submit">确认</button>
    </div>
  </form>

   <div class="control-group search-group" style="margin-left:0px;">
        添加已参赛俱乐部：<a href="?c=paome_club&a=getClubList&paomeId={$season}&contestStatus2=1" class="btn">添加已参赛俱乐部</a>
    </div>

  <form class="form-horizontal" action="?c=paome_hall&a=hallClubRecommend" method="post" enctype="multipart/form-data">
      <div style="width:600px;">
        俱乐部标题：
        <input type="text" placeholder="俱乐部标题" name="hall_title" value="{$hallTitle}">
      </div>
      <hr/>
      <input type="text" name="optype" value="2" style="display:none;">
      <table class="table table-striped">
        <thead>
          <th style="width:100px;">名称</th>
          <th style="width:70px;">头像</th>
          <th style="width:80px;">战队id</th>
          <th style="width:100px;">开始时间</th>
          <th style="width:100px;">结束时间</th>
          <th style="width:150px;">竞赛阶段</th>
          <th style="width:100px;">推荐原因</th>
        </thead>
        <tbody>
          {if !$recommendInfo}  
                <tr>
                    <td colspan="7">暂无记录</td>
                </tr>
          {else}
          {loop $recommendInfo $k $menu}
          <tr>
            <td><input type="text" style="display:none;" name="nick_name[{$k}]" value="{$menu['nick_name']}"/>{$menu['nick_name']}</td>
            <td><input type="text" style="display:none;" name="header[{$k}]" value="{$menu['header']}"/><img width="50" src="{$menu['header']}"></td>
            <td><input style="width:60px;" type="text" name="sort[{$k}]" value="{$k}"/></td>
            <td>
              开始时间：<input type="text" name="start_time[{$k}]" readonly="readonly" id="start_time_id_{$k}" value="{$menu['start_time']}">
              <input name="start_time_btn" type="button" id="start_time_btn" onclick="return showCalendar('start_time_id_{$k}', '%Y-%m-%d %H:%M:%S', '24', false, 'start_time_btn');" value="选择" class="button" id="start_time_id_{$k}"/>
            </td>
            <td>
              结束时间：<input type="text" name="end_time[{$k}]" readonly="readonly" id="end_time_id_{$k}" value="{$menu['end_time']}">
              <input name="end_time_btn" type="button" id="end_time_btn" onclick="return showCalendar('end_time_id_{$k}', '%Y-%m-%d %H:%M:%S', '24', false, 'end_time_btn');" value="选择" class="button" id="end_time_id_{$k}"/>
            </td>
            <td>暂无</td>
            <td><input type="text" name="reason[{$k}]" value="{$menu['reason']}"></td>
            <td><input type="text" name="club_id[{$k}]" value="{$menu['club_id']}" style="display:none;"></td>
          </tr>
          {/loop}
          {/if}
        </tbody>
      </table>
      <hr/>
      <div class="control-group">
          <div class="controls">
              <button type="submit" class="btn">确定推荐</button>
          </div>
      </div>
  </form>

<script>
  /*$(function(){
    $("#end_time_btn").change(function(){
      alert("333");
    });
  });*/
</script>

{template footer}
